﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using simpleHotel.Business;
using simpleHotel.Data;
namespace simpleHotel.Web
{
    public partial class DetailNews : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = Int32.Parse(Request.QueryString["newsid"]);
            if (id == null)
            {
                return;
            }

            EventNews news = new EventNews();

            if (!IsPostBack)
            {
                dlNews.DataSource = news.getNewbyID(id);
                dlNews.DataBind();
            }
        }
    }
}